package com.ben.chatroom.session.entity;

import com.ben.chatroom.common.entity.ImNode;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 会话缓存
 * @author huangyijun
 */
@Builder
public class SessionCache implements Serializable {

  @Setter
  @Getter
  private String userId;

  @Getter
  @Setter
  private ImNode node;

  @Setter
  @Getter
  private String sessionId;


  public SessionCache(String userId, ImNode node, String sessionId) {
    this.userId = userId;
    this.node = node;
    this.sessionId = sessionId;
  }
}
